{include file='admin/header.html'}
  <div id="content">
   
    <h2>给所有用户发送私信</h2>
    <table width="100%" class="table">

      <tr>
        <td width="25%"><a href="javascript:void(0)" onclick="sendallpm()">发送私信</a></td>
      </tr>
    </table>
	
     <h2>搜索</h2>
    <form id="form1" name="form1" method="post" action="">
    <table width="100%" class="table">

      <tr>
        <td width="25%">用户邮箱、用户昵称、用户域名</td>
        <td ><input name="where" type="text" value="{$get.niname}"/></td>
		<td><input name="submit" type="submit" value="搜索" /></td>
      </tr>
    </table>
    </form>
	
    
 <h2>用户列表，共 {$countuser} 名会员</h2>
	  <div class="nav">{$pager}</div>
    <table width="100%" class="table2">
    <tr>

        <th width="30" align="center" valign="middle">UID</th>
         <th width="120" align="center" valign="middle">账号</th>
        <th width="40" align="center" valign="middle">访问</th>
       
        <th width="140" align="center" valign="middle">昵称</th>
        <th width="100" align="center" valign="middle">注册</th>
        <th width="100" align="center" valign="middle">登陆</th>
        <th width="40" align="center" valign="middle">发布</th>
        <th width="40" align="center"  valign="middle">跟随</th>
        <th width="40" align="center"  valign="middle">喜欢</th>
		<th width="80" align="center"  valign="middle">发送私信</th>
      </tr>
  {foreach from=$user item=d}
    <tr>
      <td>{$d.uid}</td>
            <td valign="middle"><a href="{goUserHome domain=$d.domain uid=$d.uid}" target="_blank">{$d.email}</a></td>
        <td valign="middle" align="center">{if $d.open == 1}允许{else}禁止{/if}</td>
        <td valign="middle" align="center">{$d.username}</td>
        <td valign="middle" align="center">{dtktime time=$d.regtime}</td>
        <td valign="middle" align="center">{dtktime time=$d.logtime}</td>
        <td valign="middle" align="center">{$d.num}</td>
        <td valign="middle" align="center">{$d.flow}</td>
        <td valign="middle" align="center">{$d.likenum}</td>
	   <td valign="middle" align="center"><a href="javascript:void(0)" onclick="sendpm({$d.uid})">发送私信</a></td>
      </tr>
   {/foreach}
    </table>
    

    
    <div class="nav">{$pager}</div>
    
    
    
   
  </div>
{include file='admin/footer.html'}
